MTR [Ubuntu 18.04] vs MTR-Tiny[Ubuntu 16.04] CSV output
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
MTR [Ubuntu 18.04] vs MTR-Tiny[Ubuntu 16.04] CSV output
So my goal here is to monitor connection to some IPs using MTR command and using telegraf, will display graphs/tables to grafana.
Telegraf requires the MTR output to be in CSV format. I noticed that there is a difference in output between MTR on Ubuntu 18.04 and MTR-Tiny on Ubuntu 16.04.
update: Except I just noticed, your examples are from different versions and - since the newer one has headers - this means it has already been resolved. A quick search of the repo reveals this commit which appears to show that the final column was "last".
I still don't think the new columns names are particularly great, but at least they're there.
I still don't think the new columns names are particularly great, but at least they're there.
Took a look at the fix issue you found, however it seems that's not for mtr-tiny.
MTR-tiny output is still witout column names.
I ran an MTR command from separate nodes [ same subnet ] towards 8.8.8.8, one with MTR v.092 and one with MTR v.086 and the LAST values aren't similar.
Hrm, I just installed it to have a look, and on Debian Buster with mtr-tiny 0.92-2 running either "mtr -C 8.8.8.8" or "mtr --csv ddg.gg" just sits there outputting nothing until I Ctrl-C.
Same deal for json/xml options - no output. The --raw option does output stuff, and not specifying anything appears to default to the --curses interface.
*shrug*
Dunno what's up with that, but if the data you're getting doesn't resemble LAST and still doesn't have headers then I revert to suggesting you raise a bug.
Hrm, I just installed it to have a look, and on Debian Buster with mtr-tiny 0.92-2 running either "mtr -C 8.8.8.8" or "mtr --csv ddg.gg" just sits there outputting nothing until I Ctrl-C.
Same deal for json/xml options - no output. The --raw option does output stuff, and not specifying anything appears to default to the --curses interface.
*shrug*
Dunno what's up with that, but if the data you're getting doesn't resemble LAST and still doesn't have headers then I revert to suggesting you raise a bug.
I managed to find a way to upgrade MTR version on Ubuntu 16.04 from 0.84 to 0.92.
With v0.92, all the required columns are listed.
From another post online:
1) apt install autoconf pkgconf automake make
2) git clone https://github.com/traviscross/mtr.git
3) cd mtr/
4) ./bootstrap.sh && ./configure && make
5) cp mtr* /usr/bin/
6) mtr --v to confirm
According to the man page for mtr you can use the -o option to tell it which fields to display and in what order so you only see the data you wish. I am using 0.92
According to the man page for mtr you can use the -o option to tell it which fields to display and in what order so you only see the data you wish. I am using 0.92
Yes on MTR 0.92 that's available however not on MTR 0.84
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.